package design.patterns.observer.advanceobserver;

/**
 * @Desc:   具体观察者对象
 * @author: cww
 * @DateTime: 2020/6/12 9:16
 */

public class ConcreteSubject extends Subject{
    private String state;
    public void change(String newState){
        state = newState;
        this.notifyObservers();
    }

}
